package cn.hiapi.shopkeeper.jpa.activity;

import cn.hiapi.basic.jpa.BasicRepository;
import cn.hiapi.shopkeeper.entity.activity.ActivityApply;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author AdinZ
 * @date 2022/12/13 21:18
 */
public interface ActivityApplyJpa extends BasicRepository<ActivityApply,Long> {
    @Modifying
    @Query("delete from ActivityApply e where e.aid=?1")
    Integer deleteByAid(long aid);
}
